package org.ohos.rajawali3d.examples.data;

import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

public class RajawaBean implements Sequenceable {
    public final static int ETypeCategory = 1;
    public final static int ETypeExample = 2;

    private int mName;
    private String mUrl;
    private String mPath;
    private Class mClass;
    private int mType;

    public RajawaBean(int nameId, int type, Class cls, String url, String path) {
        mName = nameId;
        mType = type;
        mClass = cls;
        mUrl = url;
        mPath = path;
    }

//  public RajawaBean(int nameId, int type, Class cls) {
//    mName = nameId;
//    mType = type;
//    mClass = cls;
//  }

    public int getName() {
        return mName;
    }

    public int getType() {
        return mType;
    }

    public Class getExampleClass() {
        return mClass;
    }

    public String getUrl() {
        return mUrl;
    }

    public String getPath() {
        return mPath;
    }

    public void setName(String name) {
    }

    public void setExampleClass(String tel) {
    }

    protected RajawaBean(Parcel in) {
        mName = in.readInt();
        mType = in.readInt();
        mUrl = in.readString();
        mClass = in.readSerializable(Class.class);
    }

    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeInt(mName);
        parcel.writeInt(mType);
        parcel.writeString(mUrl);
        parcel.writeString(mPath);
        parcel.writeSerializable(mClass);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel in) {
        mName = in.readInt();
        mType = in.readInt();
        mUrl = in.readString();
        mPath = in.readString();
        mClass = in.readSerializable(Class.class);
        return true;
    }
}
